<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$TCA['tx_mtfenews_usernews_related'] = array (
	'ctrl' => $TCA['tx_mtfenews_usernews_related']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,user,news'
	),
	'feInterface' => $TCA['tx_mtfenews_usernews_related']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'user' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_fenews/locallang_db.xml:tx_mtfenews_usernews_related.user',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'fe_users',	
				'foreign_table_where' => 'ORDER BY fe_users.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'news' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mt_fenews/locallang_db.xml:tx_mtfenews_usernews_related.news',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tt_news',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, user, news')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);
?>